package com.cloudshadow.platform.server.demo.model;


import com.cloudshadow.platform.server.common.base.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

//@JsonInclude(Include.NON_NULL)
@Entity
@Table(name = "demo")
@ApiModel
public class DemoModel extends BaseModel {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@GenericGenerator(name = "idGenerator", strategy = "uuid")
	@GeneratedValue(generator = "idGenerator")
	private String id;

	@Column(name = "name")
	@ApiModelProperty(value="登录账号", required = true)
	private String name;

	@Column(name = "age")
	private String age;

	public DemoModel(String name, String age) {
		this.name = name;
		this.age = age;
	}

	public DemoModel() {
	}



	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}
}
